gdk_gl_texture_from_surface: Enable scissor test
authorAlexander Larsson <alexl@redhat.com>
Thu, 6 Nov 2014 19:37:10 +0000 (20:37 +0100)
committerAlexander Larsson <alexl@redhat.com>
Thu, 6 Nov 2014 19:37:10 +0000 (20:37 +0100)
gdk/gdkgl.c

index b962508833f678f9ac0f808bd6245f44c631f649..17a3a89d2ae048bc04d1a50d2764bc45ef4ec421 100644 (file)
@@ -692,6 +692,7 @@ gdk_gl_texture_from_surface (cairo_surface_t *surface,
 
   glBindTexture (target, texture_id);
   glEnable (target);
+  glEnable (GL_SCISSOR_TEST);
 
   glTexParameteri (target, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
   glTexParameteri (target, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
@@ -743,6 +744,7 @@ gdk_gl_texture_from_surface (cairo_surface_t *surface,
                            umax, vmax);
     }
 
+  glDisable (GL_SCISSOR_TEST);
   glDisable (target);
   glDeleteTextures (1, &texture_id);
 }